package com.ruoyi.common.constant;

public class ConstantWxBase {
    public enum Base {
        APP_ID("第三方用户唯一凭证", "wx50b8f1d6623c060d"),
        SECRET("第三方用户唯一凭证密钥，即appsecret", "dfe5dc0ce5374135bdcdb4f4ba9bbc19"),
        ;

        Base(String msg, String val) {
            this.msg = msg;
            this.val = val;
        }

        private String msg;
        private String val;

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getVal() {
            return val;
        }

        public void setVal(String val) {
            this.val = val;
        }
    }

    public enum Url {
        GET_ACCESS_TOKEN("获取AccessToken", "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s"),
        GET_QR("获取临时二维码", "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=%s"),
        GET_TEMPLATE_ID("获取模板ID", "https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=%s"),
        SEND_TEMPLATE_MESSAGE("发送模板消息", "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=%s"),
        MASS_SEND_TEMPLATE_MESSAGE("群发送模板消息", "https://api.weixin.qq.com/cgi-bin/message/mass/send?access_token=%s"),
        GET_USER_LIST("获取用户列表", "https://api.weixin.qq.com/cgi-bin/user/get?access_token=%s"),
        GET_USER_INFO("获取用户信息", "https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=%s"),
        SEND_COMMON_MSG("发送普通消息", "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=%s"),
        ;

        Url(String msg, String url) {
            this.msg = msg;
            this.url = url;
        }

        private String msg;
        private String url;

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
